Editing output for Boolean elements

By default a boolean XML element, such as tranCtrIsDamaged or tranIsOog, displays True or False in the printed gate document. To display Yes or No you can add the text displayed in bold in the following example to your printer layout XSL file and edit the variable name:

  <fo:table-cell border-style="solid" border-width="0.5pt">

    <fo:block font-size="10pt" font-weight="bold" padding-top="2pt">

      <!- You can enter any user defined value for the variable name ctrdmg. -->

      <xsl:variable name="ctrdmg">

        <xsl:value-of select="tranCtrIsDamaged"></xsl:value-of>

      </xsl:variable>

        <xsl:choose>

          <xsl:when test="normalize-space($ctrdmg) = 'true'">

            <xsl:text>Yes</xsl:text>

          </xsl:when>

          <xsl:otherwise>

            <xsl:text>No</xsl:text>

          </xsl:otherwise>

        </xsl:choose>

    </fo:block>

  </fo:table-cell>